package main

import (
	"encoding/binary"
	"fmt"
)

func main() {

	//b := []byte{0x23, 0xab, 0x2f, 0x01, 0x85, 0x25, 0x00, 0x00, 0x0e, 0x27, 0x00, 0x00, 0x6b, 0x25, 0x00, 0x00, 0x0e, 0x27, 0x00, 0x00, 0x00, 0x36, 0xf1, 0x48, 0xec, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 00}
	b := []byte{0x03, 0x02, 0x2f, 0x01, 0x85, 0x25, 0x00, 0x00, 0x0e, 0x27, 0x00, 0x00, 0x6b, 0x25, 0x00, 0x00, 0x0e, 0x27, 0x00, 0x00, 0x00, 0x36, 0xf1, 0x48, 0xec, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 00}
	//	b := []byte{0x23, 0xab, 0x2f, 0x01, 0x23, 0xab, 0x2f, 0x01, 0x23, 0xab, 0x2f, 0x01, 0x23, 0xab, 0x2f, 0x01, 0x23, 0xab, 0x2f, 0x01, 0x23, 0xab, 0x2f, 0x01, 0x23, 0xab, 0x2f, 0x01, 0x23, 0xab, 0x2f, 0x01}
	e := 0x03 * 0x02
	a := b[0] * b[1]
	fmt.Println(b[0], b[1], a, e)
	k := make([]byte, 4)
	for i := 0; i < 8; i++ {
		var n int
		n = i * 4
		copy(k, b[n:n+4])
		n1 := binary.LittleEndian.Uint32(k) //	return uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24
		_ = b[3]                            // bounds check hint to compiler; see golang.org/issue/14808
		n2 := uint32(k[0]) | uint32(k[1])<<8 | uint32(k[2])<<16 | uint32(k[3])<<24
		//		n2 := binary.BigEndian.Uint32(k)    // return uint32(b[3]) | uint32(b[2])<<8 | uint32(b[1])<<16 | uint32(b[0])<<24
		fmt.Println(i, n, k, n2, n1)

	}
}
